package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文创数据商品 bs_qiye_merchandise
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("bs_qiye_merchandise")
@ApiModel(value = "文创数据商品实体")
public class BsQiyeMerchandise extends BaseEntity {

    private static final long serialVersionUID = -6438546382253859594L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "商品id")
    private Long id;

    @ApiModelProperty(value = "企业id")
    private Long qiyeId;


    @ApiModelProperty(value = "商品名称")
    private String merchandiseName;

    @ApiModelProperty(value = "商品价格")
    private String merchandisePrice;

    @ApiModelProperty(value = "商品首图")
    private String merchandiseHeadImg;

    @ApiModelProperty(value = "商品详情其他图片-预留字段")
    private String merchandiseOtherImg;

    @ApiModelProperty(value = "商品标签-预留字段")
    private String merchandiseTag;

    @ApiModelProperty(value = "商品介绍")
    private String merchandiseIntroduce;

    @ApiModelProperty(value = "是否有售 0无货 1有售")
    private String onSaleStatus;

    /**
     * 逻辑删除字段 0：正常 1：删除
     */
    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty(value = "逻辑删除字段 0：正常 1：删除")
    private String delFlag;

    /**
     * 说明 : 创建人id
     */
    @TableField(value = "create_by_id", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人id")
    private Long createById;

}
